/*
 *      Copyright 2008 Battams, Derek
 *       
 *       Licensed under the Apache License, Version 2.0 (the "License");
 *       you may not use this file except in compliance with the License.
 *       You may obtain a copy of the License at
 *
 *          http://www.apache.org/licenses/LICENSE-2.0
 *
 *       Unless required by applicable law or agreed to in writing, software
 *       distributed under the License is distributed on an "AS IS" BASIS,
 *       WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *       See the License for the specific language governing permissions and
 *       limitations under the License.
 */
package com.google.code.gwtsrwc.client;

/**
 * The interface for objects wishing to receive events from TableModel instances
 * @author $Author: derek@battams.ca $
 * @version $Id: TableModelListener.java 11 2008-09-04 00:43:06Z derek@battams.ca $
 * $URL: http://gwtsrwc.googlecode.com/svn/trunk/src/com/google/code/gwtsrwc/client/TableModelListener.java $
 */
public interface TableModelListener {
	/**
	 * Called when a model has been sorted successfully
	 * @param model The model that triggered this event
	 */
	public void modelSorted(TableModel<?> model);
	
	/**
	 * Called when a row has been updated successfully in a model
	 * @param model The model that triggered this event
	 * @param row The row offset of the model that was updated
	 */
	public void modelRowUpdated(TableModel<?> model, int row);
	
	/**
	 * Called when a cell has been successfully updated in a model
	 * @param model The model that triggered this event
	 * @param row The row offset of the model that was updated
	 * @param col The column offset of the model that was updated
	 */
	public void modelCellUpdated(TableModel<?> model, int row, int col);
}